Produced by Araxis Merge on 2021-07-21 10:22:12 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/WeltPixel_Quickview/templates/product/view | addtocart.phtml | 2021-02-22 03:05:22 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.1/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/WeltPixel_Quickview/templates/product/view | addtocart.phtml | 2021-02-22 03:05:22 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 152 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | // @codingStandardsIgnoreFile | 2 | // @codingStandardsIgnoreFile | |||
| 3 | 3 | |||||
| 4 | /** @var $block \Magento\Catalog\Block\Product\View */ | 4 | /** @var $block \Magento\Catalog\Block\Product\View */ | |||
| 5 | ?> | 5 | ?> | |||
| 6 | <?php $_product = $block->getProduct(); ?> | 6 | <?php $_product = $block->getProduct(); ?> | |||
| 7 | <?php $buttonTitle = __('Add to Cart'); ?> | 7 | <?php $buttonTitle = __('Add to Cart'); ?> | |||
| 8 | <?php if ($_product->isSaleable()): ?> | 8 | <?php if ($_product->isSaleable()): ?> | |||
| 9 | <div class="box-tocart"> | 9 | <div class="box-tocart"> | |||
| 10 | <div class="fieldset"> | 10 | <div class="fieldset"> | |||
| 11 | <?php if ($block->shouldRenderQuantity()): ?> | 11 | <?php if ($block->shouldRenderQuantity()): ?> | |||
| 12 | <div class="field qty"> | 12 | <div class="field qty"> | |||
| 13 | <label class="label" for="qty"><span><?php /* @escapeNotVerified */ echo __('Qty') ?></span></label> | 13 | <label class="label" for="qty"><span><?php /* @escapeNotVerified */ echo __('Qty') ?></span></label> | |||
| 14 | <div class="control"> | 14 | <div class="control"> | |||
| 15 | <input type="number" | 15 | <input type="number" | |||
| 16 | name="qty" | 16 | name="qty" | |||
| 17 | id="qty" | 17 | id="qty" | |||
| 18 | maxlength="12" | 18 | maxlength="12" | |||
| 19 | value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" | 19 | value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" | |||
| 20 | title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" | 20 | title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" | |||
| 21 | data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>" | 21 | data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>" | |||
| 22 | /> | 22 | /> | |||
| 23 | <div class="qty-changer"> | 23 | <div class="qty-changer"> | |||
| 24 | <a href="javascript:void(0)" class="qty-inc"><i class="porto-icon-up-dir"></i></a> | 24 | <a href="javascript:void(0)" class="qty-inc"><i class="porto-icon-up-dir"></i></a> | |||
| 25 | <a href="javascript:void(0)" class="qty-dec"><i class="porto-icon-down-dir"></i></a> | 25 | <a href="javascript:void(0)" class="qty-dec"><i class="porto-icon-down-dir"></i></a> | |||
| 26 | </div> | 26 | </div> | |||
| 27 | </div> | 27 | </div> | |||
| 28 | </div> | 28 | </div> | |||
| 29 | <?php endif; ?> | 29 | <?php endif; ?> | |||
| 30 | <div class="actions"> | 30 | <div class="actions"> | |||
| 31 | <button type="submit" | 31 | <button type="submit" | |||
| 32 | title="<?php /* @escapeNotVerified */ echo $buttonTitle ?>" | 32 | title="<?php /* @escapeNotVerified */ echo $buttonTitle ?>" | |||
| 33 | class="action primary tocart" | 33 | class="action primary tocart" | |||
| 34 | id="product-addtocart-button"> | 34 | id="product-addtocart-button"> | |||
| 35 | <span><?php /* @escapeNotVerified */ echo $buttonTitle ?></span> | 35 | <span><?php /* @escapeNotVerified */ echo $buttonTitle ?></span> | |||
| 36 | </button> | 36 | </button> | |||
| 37 | <?php echo $block->getChildHtml('', true) ?> | 37 | <?php echo $block->getChildHtml('', true) ?> | |||
| 38 | </div> | 38 | </div> | |||
| 39 | </div> | 39 | </div> | |||
| 40 | </div> | 40 | </div> | |||
| 41 | <?php endif; ?> | 41 | <?php endif; ?> | |||
| 42 | <?php if ($block->isRedirectToCartEnabled()) : ?> | 42 | <?php if ($block->isRedirectToCartEnabled()) : ?> | |||
| 43 | <script type="text/x-magento-init"> | 43 | <script type="text/x-magento-init"> | |||
| 44 | { | 44 | { | |||
| 45 | "#product_addtocart_form": { | 45 | "#product_addtocart_form": { | |||
| 46 | "Magento_Catalog/product/view/validation": { | 46 | "Magento_Catalog/product/view/validation": { | |||
| 47 | "radioCheckboxClosest": ".nested" | 47 | "radioCheckboxClosest": ".nested" | |||
| 48 | } | 48 | } | |||
| 49 | } | 49 | } | |||
| 50 | } | 50 | } | |||
| 51 | </script> | 51 | </script> | |||
| 52 | <?php else : ?> | 52 | <?php else : ?> | |||
| 53 | <script> | 53 | <script> | |||
| 54 | require([ | 54 | require([ | |||
| 55 | 'jquery', | 55 | 'jquery', | |||
| 56 | 'mage/mage', | 56 | 'mage/mage', | |||
| 57 | 'Magento_Catalog/product/view/validation', | 57 | 'Magento_Catalog/product/view/validation', | |||
| 58 | 'Magento_Catalog/js/catalog-add-to-cart' | 58 | 'Magento_Catalog/js/catalog-add-to-cart' | |||
| 59 | ], function ($) { | 59 | ], function ($) { | |||
| 60 | 'use strict'; | 60 | 'use strict'; | |||
| 61 | 61 | |||||
| 62 | $('#product_addtocart_form').mage('validation', { | 62 | $('#product_addtocart_form').mage('validation', { | |||
| 63 | radioCheckboxClosest: '.nested', | 63 | radioCheckboxClosest: '.nested', | |||
| 64 | submitHandler: function (form) { | 64 | submitHandler: function (form) { | |||
| 65 | var widget = $(form).catalogAddToCart({ | 65 | var widget = $(form).catalogAddToCart({ | |||
| 66 | bindSubmit: false | 66 | bindSubmit: false | |||
| 67 | }); | 67 | }); | |||
| 68 | 68 | |||||
| 69 | widget.catalogAddToCart('submitForm', $(form)); | 69 | widget.catalogAddToCart('submitForm', $(form)); | |||
| 70 | 70 | |||||
| 71 | return false; | 71 | return false; | |||
| 72 | } | 72 | } | |||
| 73 | }); | 73 | }); | |||
| 74 | }); | 74 | }); | |||
| 75 | </script> | 75 | </script> | |||
| 76 | <?php endif; ?> | 76 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.